package org.ddxz.demo.mock.controller;


import com.alibaba.fastjson2.JSONObject;
import org.ddxz.demo.mock.service.BaoQingSisService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * desc
 *
 * @author zhuzonggang
 * @date 2025/9/7 21:35
 */

@RestController
@RequestMapping("/v2")
public class BaoQingSisController {
    private final BaoQingSisService service;

    public BaoQingSisController(BaoQingSisService service) {
        this.service = service;
    }

    @RequestMapping(value = "/login", method = RequestMethod.POST)
    public Object login(@RequestBody JSONObject body) {
        return service.login(body);
    }

    @RequestMapping(path = "/getRealtimeValue", method = RequestMethod.POST)
    public Object realTime(@RequestBody JSONObject body) {
        return service.realTime(body);
    }
}
